﻿using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace Jn698._45GWTool.ViewModels
{
    public class FrameMessageInfoViewModel:ViewModelBase
    {
		private string name;

		public string Name
		{
			get { return name; }
			set { name = value; }
		}

        
        public RelayCommand<Window> OKCommand
		{
			get
			{
				var command = new RelayCommand<Window>((w) => 
				{ 
					w.DialogResult = true;
				});
				return command;
			}
		}

        public RelayCommand<Window> CancelCommand
        {
            get
            {
                var command = new RelayCommand<Window>((w) =>
                {
                    w.DialogResult = false;
                });
                return command;
            }
        }
    }
}
